package xiangya.bysj.mapper.interf;

import java.util.List;

import xiangya.bysj.entity.Medic;

public interface MedicMapper extends MapperInterface<Medic> {
	/**
	 * 批量插入
	 * 
	 * @param list
	 *            medic集合
	 * @return 返回插入成功的数量
	 * @throws Exception
	 */
	public int saveBatch(List<Medic> list) throws Exception;

	/**
	 * 根据药品名字查找药品
	 * 
	 * @param medicName
	 *            药品名字
	 * @return 药品集合
	 * @throws Exception
	 */
	public List<Medic> selectByName(String medicName) throws Exception;

	/**
	 * 根据id查询药品
	 * 
	 * @param medicId
	 *            药品id
	 * @return medic对象
	 * @throws Exception
	 */
	public Medic selectById(int medicId) throws Exception;

}
